package br.ufal.tci.nexos.arcolive.command;


public class ArCoLIVECommandResult {

	private String result;
	//private Class resultType;
	private ArCoLIVEClientCommand commandExecuted;
	private Exception cause = null;
	
	public ArCoLIVECommandResult(ArCoLIVEClientCommand command, String result) {
		this.commandExecuted = command;
		this.result = result;
	}
	
	public ArCoLIVECommandResult(ArCoLIVEClientCommand command, String result, Exception cause) {
		this.commandExecuted = command;
		this.result = result;
		this.cause = cause;
	}
	
	public ArCoLIVECommandResult(ArCoLIVEClientCommand command, int result) {
		this.commandExecuted = command;
		this.result = Integer.toString(result);
	}
	
	public ArCoLIVEClientCommand getCommandExecuted() {
		return this.commandExecuted;
	}
	
	public String getResult() {
		return this.result;
	}

	public Exception getCause() {
		return cause;
	}
	
}